const path = require("path");

module.exports = {
  publicPath: './',
  productionSourceMap: false,
  configureWebpack: {
    resolve: {
      alias: {
        "@": path.resolve(__dirname, "src"),
      },
    },
  },
  devServer: {
    port: 9999,
    open: true,
    disableHostCheck: true,
    overlay: {
      warnings: false,
      errors: false
    },
    // proxy: {
    //   '/ehr__ehrapp': {
    //     target: 'http://172.16.240.140:20086/'
    //   },
    //   '/ehr__ehrself': {
    //     target: 'http://172.16.240.140:20086/'
    //   }
    // },
    headers: {
      'Access-Control-Allow-Origin': '*',
    }
  },
};
